package com.winit.page.repository;

import com.winit.page.model.PageElement;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PageElementRepository extends CrudRepository<PageElement, String> {
    @Query(value = "select * from matrix_page_element where ref_page_id = ?0 and parent_id = '0' allow filtering")
    List<PageElement> findByRefPAndPageId(String pageId);
}
